
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class TaskcontentTextCfg : public ManualSingleton <TaskcontentTextCfg>
{
	friend ManualSingleton <TaskcontentTextCfg>;
public:
	TaskcontentTextCfg();
	~TaskcontentTextCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const TaskcontentTextCfgInfo *GetTaskcontentTextCfgInfo(int32_t textID);
	const TaskcontentTextCfgMap *GetTaskcontentTextCfgMap() { return &m_TaskcontentTextCfgMap; }
private:
	TaskcontentTextCfgMap m_TaskcontentTextCfgMap;
};

#define  g_MakeTaskcontentTextCfgTable() (TaskcontentTextCfg::Instance())
#define  g_GetTaskcontentTextCfgTable() (TaskcontentTextCfg::GetInstance())
#define  g_DelTaskcontentTextCfgTable() (TaskcontentTextCfg::Destroy())